package com.xinrui.sunnyday.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xinrui.sunnyday.dao.MenuDao;
import com.xinrui.sunnyday.pojo.Menu;
import com.xinrui.sunnyday.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service(interfaceClass = MenuService.class)
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuDao menuDao;

    /**
     * 获取角色菜单
     * @param id
     * @return
     */
    @Override
    public List<Menu> findMenuRoleId(Integer id) {
        return menuDao.findMenuRoleId(id);
    }
}
